<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>

<html>
<head>
<style type="text/css">
body {
	text-align: center;
	background: #dcdcdc;
}
</style>
<title>Contacts</title>
</head>

<body>
	<%-- <center> --%>
	<h1>Добавить новый контакт</h1>
	<sf:form method="POST" modelAttribute="formatDataDto">
		<table  cellspacing="10" cellpadding="10" border="0">
			<tr>
				<td><label for="firstName">Имя:</label></td>
				<td><sf:input path="firstName" size="15" id="firstName" /><br />
					<%--<small id="firstName_msg">от 3 до 5 символов</small>--%> <br />
					<sf:errors path="firstName" cssClass="error" /></td>
			</tr>
			<tr>
				<td><label for="lastName">Фамилия:</label></td>
				<td><sf:input path="lastName" size="15" id="lastName" /> <br />
					<%--<small id="lastName_msg">от 3 до 5 символов</small>--%> <br />
					<sf:errors path="lastName" cssClass="error" /></td>
			</tr>
			<%--<tr>--%>
			<%--<td>--%>
			<%--<label for="numberOne">Первый номер:</label>--%>
			<%--</td>--%>
			<%--<td>--%>
			<%--<sf:input path="numberOne" size="15" id="numberOne"/> <br/>--%>
			<%--&lt;%&ndash;<small id="numberOne_msg">только цифры</small>&ndash;%&gt;--%>
			<%--</td>--%>
			<%--<br/>--%>
			<%--<sf:errors path="numberOne" cssClass="error"/>--%>
			<%--</tr>--%>
			<%--<tr>--%>
			<%--<td>--%>
			<%--<label for="typeNumOne">Тип первого телефона:</label>--%>
			<%--</td>--%>
			<%--<td>--%>
			<%--<form:select path="typeNumOne" size="1" id="typeNumOne"> <br/>--%>
			<%--<form:option value="mobile">сотовый</form:option>--%>
			<%--<form:option value="work">рабочий</form:option>--%>
			<%--<form:option value="home">домашний</form:option>--%>
			<%--</form:select>--%>
			<%--</td>--%>
			<%--<br/>--%>
			<%--<sf:errors path="typeNumOne" cssClass="error"/>--%>
			<%--</tr>--%>
			<tr>
				<td><label for="numberTwo">номер:</label></td>
				<td><sf:input path="numberTwo" size="15" id="numberTwo" /> <br />
					<%--<small id="numberTwo_msg">только цифры</small>--%></td>
				<!-- <br /> -->
				<sf:errors path="numberTwo" cssClass="error" />
			</tr>
			<tr>
				<td><label for="typeNumTwo">тип телефона:</label></td>
				<td><form:select path="typeNumTwo" size="1" id="typeNumTwo">
						<br />
						<form:option value="рабочий">рабочий</form:option>
						<form:option value="сотовый">сотовый</form:option>
						<form:option value="домашний">домашний</form:option>
					</form:select></td>
				<br />
				<sf:errors path="typeNumTwo" cssClass="error" />
				</td>
			</tr>
		</table>
		<input type="submit" value="сохранить" />
	</sf:form>
	<a href="contacts.html">Перейти к списку контактов</a>
	<%-- </center> --%>
</body>
</html>
